// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
// calls any of these is almost certainly wrong anyway, because they
// affect the entire application.)
+let animationSettings = null;
+
// Called from Main.start
function init() {
Tweener.setFrameTicker(new ClutterFrameTicker());
+ animationSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });
}
}
}
+ if (!animationSettings.get_boolean('enable-animations'))
+ tweeningParameters['time'] = 0.000001;
+
_addHandler(target, tweeningParameters, 'onStart', _tweenStarted);
_addHandler(target, tweeningParameters, 'onComplete', _tweenCompleted);
}